#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include <QIcon>
#include "goboard.h"

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);
    
    // 注册GoBoard类型，使用13x13棋盘
    qmlRegisterType<GoBoard>("GoQt", 1, 0, "GoBoard");
    
    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/GoQt/qml/main.qml")));
    
    if (engine.rootObjects().isEmpty())
        return -1;
        
    return app.exec();
}
